<?php
$dir = dirname(__FILE__);
$dir = explode('/',$dir);
$root = '/';
for ($i = 1;$i<count($dir)-1;$i++){
    $root.= $dir[$i].'/';
}
unset($dir);
$baseurl = "http://abiturient.lan/";

$config = array (
    'db'    => array (
        'adapter'   => 'PDO_MYSQL',
        'params'    => array( 
            'host'          => 'localhost',
            'username'      => 'root',
            'password'      => 'mysqlroot',
            'dbname'        => 'roman_abiturient',
            'driver_options'=> array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES UTF8'),
            'profiler'      => false,
        ),
    ),
    'url'   => array (
        'base'         => $baseurl,
        'public'       => $root,
    ),
    'path'  => array (
        'root'         => $root,
        'application'  => $root . 'app/',
        'autoload'     => array(
            'library'      => $root . 'lib/',
            'system'       => $root . 'system/',
            'controller'   => $root . 'app/controllers/',
            'model'        => $root . 'app/models/',
            'helper'       => $root . 'app/helpers/',
            'block'        => $root . 'app/blocks/'
        ),
        'design'       => array(
            'admin'        => $root . 'design/admin/default/',
            'frontend'     => $root . 'design/frontend/default/',
        ),
        'cache'       => $root . 'cache/',
    ),
    'common' => array (
        'charset'      => 'utf-8',
    ),
    'debug' => array (
        'on'           => true,
    ),
);

date_default_timezone_set("Europe/Kiev");